package com.objects.demo01;

public class Life {
    // 重写 Object 类的 toString 方法
    @Override
    public String toString() {
        return "Student [path = " + this.getClass() + ", name = " + this.getClass().getName() + "]";
    }
}
